home *** CD-ROM | disk | FTP | other *** search
/ ftp.msan.hr / ftp.msan.hr.tar / ftp.msan.hr / Drivers / Info Kiosk / Magtek / 99510016.exe / DISK1 / Data1.cab / MCPSETUP.INF < prev    next >
Windows Setup INFormation  |  2004-05-21  |  12KB  |  328 lines

  1. ;--- Header --------------------------------------------------------------------
  2.  
  3. [version]
  4. signature="$CHICAGO$"
  5. class=MagTek
  6. provider =%Provider%
  7.  
  8. ;NOTE: This file contains references to itself. They should be modifled
  9. ;      in case this file is renamed. See the files/disks sections and the [Strings]
  10. ;      section
  11.  
  12. ;--- config utility settings ---------------------------------------------------
  13. ; NB: keep these at the beginning of the file for faster access
  14.  
  15. ; --- Known Properties Map  ---
  16. [cfg_prop_map]
  17. ; 'known' properties      type,attr,[min,max | (strings)]
  18. TraceFilePath            =0,0
  19. MaxTraceFileSize         =1,0
  20. ClearTraceFile           =1,0
  21. Core.TraceEnabled        =1,0
  22. Core.ErrorLogLevel       =1,0
  23. Core.RspTimeout          =1,0
  24. Port.RAWEnabled          =1,0
  25. Port.EDCTypeOverride     =1,0
  26. Port.Name                =0,2   ; 'xpt1'
  27. Port.TraceEnabled        =1,0
  28. Port.ErrorLogLevel       =1,0
  29. Port.BlockWaitTimeout    =1,0
  30. Port.CharacterWaitTimeout=1,0
  31. Port.BaudRate            =1,0,300,115200
  32. Port.Parity              =0,0,"n|e|o|s|m|N|E|O|S|M"
  33. Port.StopBits            =1,0,1,2
  34. Port.BaudSync            =1,0
  35. Port.MaxTxFrameDataSize  =1,0
  36. Port.MaxRxFrameDataSize  =1,0
  37. ; blocked properties
  38. FriendlyName             =0,1
  39. autocfg_mask             =1,1
  40. DevPrtClass              =0,1
  41. ; special properties
  42. Transport                =0,4
  43. ; 'hidden' properties (not shown in normal property enumeration)
  44. Port.bsync_data          =1,16
  45. Port.bsync_tout          =1,16
  46. Port.bsync_retry_tout    =1,16
  47. Port.reestablish_tout    =1,16
  48. Port.ack_tout            =1,16
  49. Port.max_retries         =1,16
  50.  
  51.  
  52. ; --- Transport Assembly Map ---
  53. [cfg_xpt_map]
  54. Serial=DEVSER           ; keep these first, for prop. display purpose
  55. Parallel=DEVPAR
  56. USB=DEVUSB
  57. COM1=DEVSER
  58. COM2=DEVSER
  59. COM3=DEVSER
  60. COM4=DEVSER
  61. ; --- Service Start/Stop sequence ---
  62. [cfg_start_stop]
  63. MTMCPSER
  64. MTMCPBASE
  65.  
  66. ; --- Strings and messages ---
  67. [cfg_strings]
  68.  
  69. ;non-localizeable
  70. xpt_class_name =DevPrtClass   ; name of property to set according to [cfg_xpt_map]
  71. conn_port_name =FriendlyName   ; name of property that keeps the connection name
  72. dev_reg_root   ="SYSTEM\CurrentControlSet\Services\MTMCPBASE\Parameters\Devices"
  73. map_path       ="SYSTEM\CurrentControlSet\Services\MTMCPBASE\Parameters\PropertyMap"
  74. ; NB: installer *MUST* create the %dev_reg_root% & %map_path% keys (empty)
  75.  
  76. ;TBD:
  77. serial_speed   ="Port.BaudRate" ; name of property that defines serial baud rate
  78. serial_xpt_name=DEVSER          ; use the 'auto' settings when %xpt_class_name% is set to %serial_xpt_name%
  79. name_base      =MCP_DEV_        ; string to use as a base for generating kernel-mode device names
  80.  
  81. ;localizeable
  82. msg_dup_device     ="This device already exists"
  83. msg_dev_not_fnd    ="Specified device was not found"
  84. msg_inf_not_fnd    ="Internal error: INF file not found"
  85. msg_inf_corrupt    ="Internal error: INF file format error"
  86. msg_unk_prop       ="Specified property name is not valid"
  87. msg_invalid        ="System error - invalid parameter"
  88. msg_access         ="Access denied (administrative privilege required)"
  89. msg_overflow       ="Buffer overflow"
  90. msg_invalid1       ="Invalid parameter"
  91. msg_syntax         ="Command line syntax error"
  92. msg_no_xpt         ="Transport type not specified and cannot be deducted from given port name"
  93. msg_range          ="Specified value is out of range"
  94. msg_reg_err        ="Error in configuration database found - driver re-installation recommended"
  95. msg_device_is_open ="Can not continue: an instance of the driver is still open."
  96. msg_unknown        ="Unrecognized system error %%d(0x%%x)"
  97.  
  98. ; --- Notes ---
  99. ; [cfg_prop_map] entry syntax: Name=Type,attr
  100. ; type=0 - ascii, 1-dword (or 4-byte binary)
  101. ;
  102. ; attr=  1 = block - don't allow this prop to be set through cmd line
  103. ;        2 = xpt1  - The property to use in determining transport type
  104. ;                    (Port.Name)
  105. ;        4 = xpt2  - The "soft" transport type property (no Registry value
  106. ;                    corresponds to it)
  107. ;        8 = auto  - auto-configurable (serial timeout - see note *)
  108. ;       16 = hidden- this property is not enumerated if it is not set in the Registry
  109. ;
  110. ; here is how the 'xpt' properties work: if specified on the cmd line,
  111. ; MCPCFG tries to match the value to an entry in the [cfg_xpt_map] table. If
  112. ; both the 'xpt1' and the 'xpt2' properties are specified, 'xpt2' has
  113. ; priority. If none are specified, or a match is not found in the
  114. ; [cfg_xpt_map] an error is reported
  115. ; (only one property in the [cfg_prop_map] can be marked with each of the
  116. ; 'xpt' attributes).
  117. ;       16 = block_enum - block property from enumeration, but allow
  118. ;            get/set.
  119. ; * high 16 bits specify the formula used for 'auto' properties:
  120. ; 0: (14 * 1000)  / baud + 10            time for 1.4 characters + 10ms
  121. ; 1: MAX(4096*11*1000 / src + 50 , 250)  block wait timeout
  122. ; 2: MAX(8192*11*1000 / src + 100,3000)  response timeout
  123. ;
  124. ;
  125. ; [cfg_xpt_map] defines the mapping between port names or the values of the
  126. ; special 'Transport' property on one side to the class name of the device assembly
  127. ; that implements this transport on the other side. Syntax:
  128. ; <transport 'friendly name'>=<DEV assembly name>
  129.  
  130. ;===============================================================================
  131. ;--- Install and Registry sections ---------------------------------------------
  132.  
  133. [DefaultInstall]
  134. AddReg    = MCP_Svc,MCP_Svc_Ser,MCP_Reg, MCP_Reg95
  135. CopyFiles = SETUP_API_Files,MCP_files,MCP_files_win32,MCP_98_files,MCP_files_win,MCP_files_inf
  136.  
  137. [DefaultInstall_95]
  138. AddReg    = MCP_Svc, MCP_Svc_Ser,MCP_Reg, MCP_Reg95
  139. CopyFiles = SETUP_API_Files,MCP_95_files,MCP_files_win32,MCP_files_win,MCP_files_inf
  140.  
  141. [DefaultInstall.NT]
  142. AddReg    = MCP_Reg,MCP_RegNT
  143. CopyFiles = MCP_NT_files,MCP_files_win32,MCP_files_win,MCP_files_inf
  144.  
  145. [DefaultInstall.NT.Services]
  146. AddService=MTMCPBASE,0,MTMCPBASE_serv_inst,MCP_NT_EventLog_Inst
  147. AddService=MTMCPSER,0,MTMCPSER_serv_inst
  148. ; NB: specify the start/stop order of services (used by MCPCFG only) in the
  149. ; [cfg_start_stop] section; keep the list of services in this section in synch
  150. ; with the services that are actually installed!
  151. ; NB: boot-time start order is defined by the load order groups
  152.  
  153. ; AddReg Section: 95/98 service installation
  154. [MCP_Svc]
  155. HKLM,%MCP_Root%
  156. HKLM,%MCP_Root%,DisplayName ,          ,"%MCP_DisplayName%"
  157. HKLM,%MCP_Root%,ImagePath   ,          ,"\SystemRoot\System32\Drivers\MTMCPBSE.sys"
  158. HKLM,%MCP_Root%,ErrorControl,0x00010001,01,00,00,00
  159. HKLM,%MCP_Root%,Start       ,0x00010001,02,00,00,00
  160. HKLM,%MCP_Root%,Type        ,0x00010001,01,00,00,00
  161.  
  162. ; AddReg Section: 95/98 service installation
  163. [MCP_Svc_Ser]
  164. HKLM,%MCP_Ser_Root%
  165. HKLM,%MCP_Ser_Root%,DisplayName ,          ,"%MTMCPSER_DisplayName%"
  166. HKLM,%MCP_Ser_Root%,ImagePath   ,          ,"\SystemRoot\System32\Drivers\MTMCPSER.sys"
  167. HKLM,%MCP_Ser_Root%,ErrorControl,0x00010001,01,00,00,00
  168. HKLM,%MCP_Ser_Root%,Start       ,0x00010001,02,00,00,00
  169. HKLM,%MCP_Ser_Root%,Type        ,0x00010001,01,00,00,00
  170.  
  171. ; AddReg Section: 95/98 specific settings
  172. [MCP_Reg95]
  173. HKLM,%UMCP%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\%INF_NAME%"
  174. ;HKLM,%MCP_ParametersRoot%\ExternalClassMap,DEVSER,,MTMCPSER.SYS
  175.  
  176. ; AddReg Section: NT specific settings
  177. [MCP_RegNT]
  178. HKLM,%UMCP%,UninstallString,,"cmd /c %10%\mcpcfg.exe stopd && %11%\rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 %17%\%INF_NAME% && del %17%\%PNF_NAME%"
  179.  
  180. ; AddReg Section: driver settings (common)
  181. [MCP_Reg]
  182. HKLM,%MCP_ParametersRoot%
  183. HKLM,%MCP_ParametersRoot%\Devices
  184. HKLM,%MCP_ParametersRoot%\PropertyMap
  185. HKLM,%UMCP%
  186. HKLM,%UMCP%,DisplayName,,"%MCP_DisplayName% (uninstall)"
  187.  
  188. [MCP_NT_EventLog_AddReg]
  189.  
  190. ;--- Service Descriptors (NT) --------------------------------------------------
  191.  
  192. [MTMCPBASE_serv_inst]
  193. DisplayName=%MCP_NT_DisplayName%
  194. ServiceType=1                                ; kernel mode driver
  195. StartType=2                                  ; auto start
  196. ErrorControl=1                               ; normal error control
  197. ServiceBinary=%12%\MTMCPBSE.sys               ; %windir%\system32\drivers
  198. LoadOrderGroup = Extended base               ; to make it together with minidrivers
  199. Dependencies = MTMCPSER                ; to make it load after mini-drivers
  200.  
  201.  
  202. [MCP_NT_EventLog_Inst]
  203. AddReg=MCP_NT_EventLog_AddReg
  204.  
  205.  
  206. [MTMCPSER_serv_inst]
  207. DisplayName=%MTMCPSER_DisplayName%
  208. ServiceType=1                                ; kernel mode driver
  209. StartType=2                                  ; auto start
  210. ErrorControl=1                               ; normal error control
  211. ServiceBinary=%12%\MTMCPSER.sys                ; %windir%\system32\drivers
  212. LoadOrderGroup = Extended base               ;  - to make it load before MTMCPBASE
  213.  
  214. ;--- Uninstall -----------------------------------------------------------------
  215.  
  216. ; Uninstall sections
  217. [DefaultUninstall]
  218. DelReg    = MCP_DelReg
  219. DelFiles  = MCP_files,MCP_files_win32,MCP_files_win,MCP_files_inf,MCP_files_pnf
  220.  
  221. [DefaultUnInstall.NT]
  222. DelReg=MCP_DelRegNT
  223. DelFiles=MCP_NT_files,MCP_files_win32,MCP_files_win,MCP_files_inf
  224.  
  225. [DefaultUnInstall.NT.Services]
  226. DelService=MTMCPBASE,0,MTMCPBASE_serv_inst ;,MCP_NT_EventLog_Inst
  227. ;;DelService=MCPPAR,0,MCPPAR_serv_inst
  228. DelService=MTMCPSER,0,MTMCPSER_serv_inst
  229.  
  230. ; DelReg sections
  231. [MCP_DelReg]
  232. HKLM,%UMCP%
  233. HKLM,%MCP_Root%
  234.  
  235. [MCP_DelRegNT]
  236. HKLM,%UMCP%
  237. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\MTMCPBASE"
  238.  
  239. ;--- Files ---------------------------------------------------------------------
  240.  
  241. ;dest,[src],[?],[flags]
  242. [MCP_files]
  243. MTMCPBSE.sys,win98\MTMCPBSE.sys
  244. MTMCPSER.sys,win98\MTMCPSER.sys
  245. MTMCPUSB.sys,win98\MTMCPUSB.sys
  246.  
  247.  
  248. [MCP_NT_files]
  249. MTMCPBSE.sys,winnt\MTMCPBSE.sys
  250. MTMCPSER.sys,winnt\MTMCPSER.sys
  251.  
  252. [MCP_95_files]
  253. MTMCPBSE.sys,win95\MTMCPBSE.sys
  254. MTMCPSER.sys,win95\MTMCPSER.sys
  255. MTMCPSER.sys,win95\MTMCPUSB.sys
  256.  
  257. [MCP_98_files]
  258. mtmcppnp.exe
  259.  
  260.  
  261.  
  262. [MCP_files_win32]
  263. MCPapi.dll
  264. ;mcpsetup.dll
  265.  
  266.  
  267. [MCP_files_win]
  268. mcpcfg.exe
  269.  
  270. [MCP_files_inf]
  271. MCPSetup.inf
  272. mtmcpusb.inf
  273.  
  274. [MCP_files_pnf]
  275. MCPSetup.pnf
  276.  
  277. [SETUP_API_Files]
  278. setupapi.dll,,,0x00000020   ;copy only if destination is older and don't display dialog
  279.  
  280. [SourceDiskFiles]
  281. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MCP Driver
  282. MTMCPBSE.sys = 1
  283. MTMCPSER.sys = 1
  284.  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MCP Installation Script
  285. MCPSetup.inf = 1
  286. mtmcpbase.inf = 1
  287. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MCP Configuration and Installation Utility
  288. mcpcfg.exe = 1
  289. mtmcppnp.exe = 1
  290. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Installation and Configuration DLLs (Windows 95)
  291. setupapi.dll = 1
  292.  
  293. ;--- Directories and disks -----------------------------------------------------
  294.  
  295. ; NB: %12% in Win98 goes to system\iosubsys, in NT it goes to system32\drivers
  296. [DestinationDirs]
  297. MCP_files=10,System32\Drivers          ; copy to %windir%\system[32]
  298. MCP_NT_files=12       ; copy to %windir%\system32\drivers (NT only)
  299. MCP_95_files=10,System32\Drivers       ; copy to %windir%\system[32]
  300. MCP_files_win32=11    ; copy to %windir%\system[32]
  301. MCP_files_win=10      ; copy to %windir%
  302. MCP_files_inf=17      ; copy to %windir%\inf
  303. MCP_files_pnf=17      ; copy to %windir%\inf
  304. SETUP_API_Files=11    ; copy to %windir%\system (95 & 98 only)
  305. [SourceDisksNames]
  306. ;//disk-ordinal="disk-description",tag-file,unused[,path]
  307. 1="MCP Driver Disk",,0
  308.  
  309.  
  310. ;--- Strings -------------------------------------------------------------------
  311.  
  312. [Strings]
  313. Provider          ="MagTek Inc."
  314. MCP_Root          ="SYSTEM\CurrentControlSet\Services\MTMCPBASE"
  315. MCP_Ser_Root      ="SYSTEM\CurrentControlSet\Services\MTMCPSER"
  316. MCP_ParametersRoot="SYSTEM\CurrentControlSet\Services\MTMCPBASE\Parameters"
  317. MCP_DisplayName   ="MCP Driver For Mag-Tek Communications Protocol"
  318. MCP_NT_DisplayName="MCP Driver For Mag-Tek Communications Protocol"
  319. MTMCPSER_DisplayName="MCP Transport Minidriver - Serial"
  320. MCPPAR_DisplayName="MCP Transport Minidriver - Parallel"
  321. Name_Base         ="MCP_DEV_"
  322. UMCP              ="Software\Microsoft\Windows\CurrentVersion\Uninstall\MAGTEK_MCP"
  323. ;
  324. ;string below should be the name of this file
  325. INF_NAME          ="MCPSetup.inf"
  326. PNF_NAME          ="MCPSetup.pnf"
  327.  
  328.